package com.functest.orm

/**
 * Created with IntelliJ IDEA.
 * User: KovalevAS
 * Date: 11.09.13
 * Time: 16:34
 */
interface WhereClauseBuilder extends Builder<QueryExecutor> {
    Class getBeanClass()

    WhereClauseBuilder and(Condition c)

    WhereClauseBuilder and(String field, ConditionOp op, def value)

    WhereClauseBuilder or(Condition c)

    WhereClauseBuilder or(String field, ConditionOp op, def value)

    WhereClauseBuilder andNot(Condition c)

    WhereClauseBuilder orNot(Condition c)

    WhereClauseBuilder andOpenBrackets(Condition c)

    WhereClauseBuilder orOpenBrackets(Condition c)

    WhereClauseBuilder closeBrackets()

}
